package com.tuanzi.loan.web.lazy.statistics;

import com.tuanzi.loan.business.service.statistics.StatNotRegisterLoginService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.StatNotRegisterLoginRequest;
import com.tuanzi.loan.vo.response.statistics.StatNotRegisterLoginResponse;
import org.springframework.data.domain.Page;

/**
 * User: liangZongXi
 * Create time: 15:39 2019/10/9
 * Description:
 */
public class StatNotRegisterLoginDataLazyModel extends BaseLazyDataModel<StatNotRegisterLoginRequest, StatNotRegisterLoginResponse> {
    private static final long serialVersionUID = -2025561209648258978L;

    private StatNotRegisterLoginService statNotRegisterLoginService = SpringContextHolder.getBean(StatNotRegisterLoginService.class);

    public StatNotRegisterLoginDataLazyModel(StatNotRegisterLoginRequest statNotRegisterLoginRequest) {
        super(statNotRegisterLoginRequest);
    }

    @Override
    protected Page<StatNotRegisterLoginResponse> doLoad(PageSearcher<StatNotRegisterLoginRequest> pageSearcher) {
        return statNotRegisterLoginService.list(pageSearcher);
    }
}
